﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace DAL
{
    public abstract class TrangthaiphieuDAL:BaseDAL,IBase
    {
        #region IBase Members

        public int Count()
        {
            throw new NotImplementedException();
        }

        public object Select(string code)
        {
            throw new NotImplementedException();
        }

        public System.Data.DataTable Select(Guid fKey)
        {
            throw new NotImplementedException();
        }

        public System.Data.DataTable Select(object obj, int skip, int take)
        {
            throw new NotImplementedException();
        }

        public object Insert(object obj)
        {
            throw new NotImplementedException();
        }

        public object Update(object obj)
        {
            throw new NotImplementedException();
        }

        public object Delete(Guid id)
        {
            throw new NotImplementedException();
        }

        #endregion

        public System.Data.DataTable Trangthaiphieu_Select()
        {
            return Mapper.QueryForDataTable("Trangthaiphieu_Select", null, "Temp");
        }

        public bool Trangthaiphieu_Insert(DAL.Entities.Trangthaiphieu ttp)
        {
            try
            {
                _sqlMapper.Insert("Trangthaiphieu_Insert", ttp);
                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }
    }
}
